home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / objects / r3trmnrb.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  2.8 KB  |  116 lines

  1.  
  2. // JavaScript wrapper for r3trmnrb.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_TRIMNURBS_H = 1;
  7. include("real/objects/r3nurbs.js")
  8.  
  9.  
  10. var R3CLID_TRIMNURBS = 215;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Evaluate trim curve
  16.  
  17. R3TMNUM_EVALUATEABS = 215001;
  18.  
  19. function mR3TMNUM_EVALUATEABS() {
  20.   DoA(this.r3obj, 215001, 0, R3TID_INTEGER, 0);
  21. }
  22.  
  23. // Description: Fetch the mesh the trim curve is associated with
  24. // Returns: Object, address of the mesh object
  25.  
  26. R3TMNUM_TRIMMEDPARENT = 215002;
  27.  
  28. function mR3TMNUM_TRIMMEDPARENT() {
  29.   return R3ToJS(  DoA(this.r3obj, 215002, 0, R3TID_INTEGER, 0));
  30. }
  31.  
  32. // Description: Create a regular nurbs curve from the trim
  33. // Returns: Object, nurbs curve
  34. // p1: Integer, space
  35.  
  36. R3TMNUM_CREATENURBSFROMTRIM = 215003;
  37.  
  38. function mR3TMNUM_CREATENURBSFROMTRIM(p1) {
  39.   return R3ToJS(  DoA2(this.r3obj, 215003, p1, R3TID_INTEGER, 0, 0, R3TID_INTEGER, 0));
  40. }
  41.  
  42. // Description: Create a trim curve for a given nurbs curve and surface.
  43. // Returns: Object, trim curve
  44. // p1: Integer, space
  45.  
  46. R3TMNUCM_CREATETRIMFROMNURBS = 215004;
  47.  
  48. function mR3TMNUCM_CREATETRIMFROMNURBS(p1) {
  49.   return R3ToJS(  DoA2(this.r3obj, 215004, p1, R3TID_INTEGER, 0, 0, R3TID_INTEGER, 0));
  50. }
  51.  
  52.  
  53.  
  54.  
  55. R3TMNUA_Cut = 215501;
  56. function SetR3TMNUA_Cut(value) {
  57.   R3Set(this.r3obj, R3TMNUA_Cut, value, R3TID_INTEGER, 0); 
  58. }
  59.  
  60. function GetR3TMNUA_Cut() {
  61.   return R3Get(this.r3obj, R3TMNUA_Cut, R3TID_INTEGER, 0); 
  62. }
  63.  
  64. R3TMNUA_Invert = 215502;
  65. function SetR3TMNUA_Invert(value) {
  66.   R3Set(this.r3obj, R3TMNUA_Invert, value, R3TID_BOOLEAN, 0); 
  67. }
  68.  
  69. function GetR3TMNUA_Invert() {
  70.   return R3Get(this.r3obj, R3TMNUA_Invert, R3TID_BOOLEAN, 0); 
  71. }
  72.  
  73. R3TMNUA_WrapU = 215503;
  74. function SetR3TMNUA_WrapU(value) {
  75.   R3Set(this.r3obj, R3TMNUA_WrapU, value, R3TID_INTEGER, 0); 
  76. }
  77.  
  78. function GetR3TMNUA_WrapU() {
  79.   return R3Get(this.r3obj, R3TMNUA_WrapU, R3TID_INTEGER, 0); 
  80. }
  81.  
  82. R3TMNUA_WrapV = 215504;
  83. function SetR3TMNUA_WrapV(value) {
  84.   R3Set(this.r3obj, R3TMNUA_WrapV, value, R3TID_INTEGER, 0); 
  85. }
  86.  
  87. function GetR3TMNUA_WrapV() {
  88.   return R3Get(this.r3obj, R3TMNUA_WrapV, R3TID_INTEGER, 0); 
  89. }
  90.  
  91.  
  92.  
  93. function r3Trimnurbs () { 
  94.    this.base = r3God;
  95.    if(arguments.length) {
  96.       this.base(R3CLID_TRIMNURBS, arguments);
  97.    }
  98.    // Methods
  99.    this.EVALUATEABS=mR3TMNUM_EVALUATEABS;
  100.    this.TRIMMEDPARENT=mR3TMNUM_TRIMMEDPARENT;
  101.    this.CREATENURBSFROMTRIM=mR3TMNUM_CREATENURBSFROMTRIM;
  102.    this.CREATETRIMFROMNURBS=mR3TMNUCM_CREATETRIMFROMNURBS;
  103.  
  104.    // Attributes
  105.    this.GetCut=GetR3TMNUA_Cut;
  106.    this.SetCut=SetR3TMNUA_Cut;
  107.    this.GetInvert=GetR3TMNUA_Invert;
  108.    this.SetInvert=SetR3TMNUA_Invert;
  109.    this.GetWrapU=GetR3TMNUA_WrapU;
  110.    this.SetWrapU=SetR3TMNUA_WrapU;
  111.    this.GetWrapV=GetR3TMNUA_WrapV;
  112.    this.SetWrapV=SetR3TMNUA_WrapV;
  113. }
  114.  
  115. r3Trimnurbs.prototype=new r3Nurbs;
  116. // r3trmnrb.h_H